<script setup lang="ts">

import type { MenuVo } from '@/type/Menu'

const props = defineProps<{
  buttonList: MenuVo[] | null,
  link: boolean,
  rowData: any,
  methods: any
}>()


</script>

<template>
  <div class="mb-4 s-button-list">
    <el-button v-for="it in props.buttonList" plain :type="it.btnType" :icon="it.icon === '#' ? '' : it.icon" @click.stop="methods[it.component](props.rowData)"
               :key="it.menuId" size="default" :link="props.link">
      {{ it.menuName }}
    </el-button>
  </div>
</template>

<style scoped>
</style>